using com.youzu.warh.protocol;
using ProtoBuf.Serializers;


public class EffectElementPool : ProtoPoolBase<EffectElement>
{
    protected override void RecycleChildren(EffectElement data)
    {
        ProtoFactory.Recycle(data.source);
    }

    protected override void ClearNetData(EffectElement data)
    {
        data.elementId = 0;
        data.skillId = 0;
        data.skillLv = 0;
        data.amount = 0;
        data.castPlayerId = 0;
        data.normalAttackType = 0;
        data.source = null;
    }
}